package com.weishi.project.api.ret;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.Date;
import java.util.Objects;

@Data
public class TrainingProgramScheduleTableRet {

    @ApiParam(value = "项目名称")
    private String levelName;

    @ApiParam(value = "训练项目")
    private String level;

    @ApiParam(value = "完成时长")
    private int completionTime;

    @ApiParam(value = "目标时长")
    private int targetTime;

    @ApiParam(value = "完成公里数")
    private int completionKm;

    @ApiParam(value = "目标公里数")
    private int targetKm;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TrainingProgramScheduleTableRet that = (TrainingProgramScheduleTableRet) o;
        return  level.equals(that.level);
    }

    @Override
    public int hashCode() {
        return 1;
    }
}
